﻿Public Class StateProjectFormCreator
    Public Shared Function getStateProjectForm(ByRef form As ProjectForm)
        If form.project.stateProperty Is Nothing Then
            Return New StateProjectFormCreating(form)
        ElseIf form.project.stateProperty.idProperty = 1 Then
            Return New StateProjectFormInPlanning(form)
        ElseIf form.project.stateProperty.idProperty = 2 Then
            Return New StateProjectFormInProcess(form)
        Else
            Return New StateProjectFormFinalized(form)
        End If
    End Function
End Class
